<div  style="margin-bottom: 20px;">
  <button nz-button [nzType]="'primary'" type="submit"  (click)="addMenu()">
    <span>添加</span>
  </button>

  <button nz-button [nzType]="'danger'" (click)="delete()">
  <span>
    <i class="anticon anticon-delete"></i>删除</span>
  </button>
</div>


<nz-table #nzTable [nzDataSource]="_dataSet" [nzPageSize]="7" nzShowSizeChanger>
  <thead nz-thead>
  <tr>
    <th nz-th nzCheckbox>
      <label nz-checkbox [(ngModel)]="_allChecked" [nzIndeterminate]="_indeterminate"
             (ngModelChange)="_checkAll($event)">
      </label>
    </th>
    <th nz-th>
      <span>名称</span>
    </th>
    <th nz-th>
      <span>路径</span>
    </th>
    <th nz-th>
      <span>类型</span>
    </th>
    <th nz-th>
      <span>备注</span>
    </th>


  </tr>
  </thead>
  <tbody nz-tbody>
  <tr nz-tbody-tr *ngFor="let data of nzTable.data">
    <td nz-td nzCheckbox>
      <label nz-checkbox [(ngModel)]="data.checked" (ngModelChange)="_refreshStatus($event)">
      </label>
    </td>
    <td nz-td>
      <a>{{data.name}}</a>
    </td>
    <td nz-td>{{data.href}}</td>
    <td nz-td>{{data.type}}</td>
    <td nz-td>{{data.createTime | date : 'yyyy-MM-dd HH:mm:ss'}}</td>

  </tr>
  </tbody>
</nz-table>
